/******************************************************************************
** 
** Counting inputted chars.
** 
** File name:	chars_count_for.c
** Compilation:	cc chars_count_for.c -o chars_count_for
** Execution:	./chars_count_for
** 
** Description:
** Prints the number of inputted chars. "For" construction is used.
** 
******************************************************************************/
#include <stdio.h>

main()
{
    double nc;
    
    for(nc=0; getchar() != EOF; ++nc)
      ;
    printf("%.0f\n", nc);
}

